module.exports = {
  configureWebpack: {
    resolve: {
      alias: {
        'assets': '@/assets',
        'components': '@/components',
        'views': '@/views',
        'network': '@/network',
        'data': '@/data',
        'common': '@/common'
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: "http://localhost/contentPro/backend/api",
        changeOrigin: true, // 是否允许跨域 设置为true
        pathRewrite: {  // 重写域名
          '^/api': '/'
        }
      }
    }
  }
}